package com.yanqu.road.server.cmd.orewar.cross;

import com.yanqu.road.pb.cross.activity.CrossActivityProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.cross.CrossDataMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_ORE_WAR_SYNC_UNION_RANK, desc = "跨服盐场商会排行同步")
public class CrossUnionRankListSyncCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		CrossActivityProto.CrossActivityUnionRankListSyncMsg reqMsg = CrossActivityProto.CrossActivityUnionRankListSyncMsg.parseFrom(packet.getBytes());
		CrossDataMgr.crossActivityUnionRankListSync(reqMsg);
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
